<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>innerHtml</title>
	<style>
        div{
        	width: 200px;
        	height: 50px;
        	border: 1px solid green;
        	margin: 5px auto;
        }
	</style>
	<script>
		window.onload = function(){
            var node = document.getElementsByTagName('div')
			for (var i = 0; i < node.length; i++) {
				node[i].onclick = function(){
					alert(this.innerHTML)
				}
			}
		}
	</script>
</head>
<body>
	<div>hhhhhhhhhhhhhhhhhhhhhhhhhhh</div>
	<div>wwwwwwwwwwwwwwwwwwwwwwwwwww</div>
	<div>hello world! <em>haha  </em>Hey boy!!!</div>
</body>
</html>